package org.rado.chessbastard.board.objects.pieces;


public abstract class AbstractChessPiece implements IChessPiece {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4837537524180463572L;
	
	@SuppressWarnings("unused")
	private PieceColor pieceColor=null;
	
	/**
	 * Basic constructor, that should be shared amongst all pieces
	 * it is supposed to only set the color - player indicator 
	 * 
	 * @param pieceColor
	 * @throws IllegalArgumentException
	 */
	public AbstractChessPiece(PieceColor pieceColor) throws IllegalArgumentException{
		if(pieceColor ==null){
			throw new IllegalArgumentException("Chess piece's colour can't be null!");
		}
		this.pieceColor=pieceColor;
	}

	@Override
	public PieceColor getPieceColor() {
		return this.pieceColor;
	}

}
